package cn.signalpha.modules.com.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 数据传输对象实体类
 *
 * @author signalpha
 */
@Data
@ApiModel(value = "WithdrawDTO对象", description = "提现")
public class WithdrawDTO implements Serializable {

    private static final long serialVersionUID = 1L;

	@NotNull
	@ApiModelProperty(value = "收款方式：1支付宝 2微信 3银行")
	private Integer type;

	@ApiModelProperty(value = "银行名称")
	private String bank;

	@ApiModelProperty(value = "收款姓名")
	private String realName;

	@NotBlank
	@ApiModelProperty(value = "卡号、账号")
	private String account;

	@NotNull
	@ApiModelProperty(value = "提现金额")
	private Double amount;

	@Data
	public static class AuditDTO implements Serializable {
		private static final long serialVersionUID = 1L;
		@NotBlank
		@ApiModelProperty(value = "ids")
		private String ids;
		@NotNull
		@ApiModelProperty(value = "状态：-1不同意 1同意")
		private Integer status;
		@ApiModelProperty(value = "审核备注")
		private String remark;
		@ApiModelProperty(value = "打款方式：1线下 2线上")
		private Integer remitType;
	}

}
